@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    list-style: none;
}

i {
    font-style: normal;
}

html {
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 0.2rem;
}

$w:12.42rem;

header {
    width: $w;
    height: 2.8rem;

    >.phone {
        width: $w;
        height: 1.2rem;

        >img {
            width: 100%;
            height: 100%;
        }
    }

    >.classify {
        width: $w;
        height: 1.6rem;
        display: flex;
        align-items: center;
        justify-content: space-around;

        >img:nth-of-type(1) {
            width: 0.45rem;
            height: 0.36rem;
        }

        >.seach {
            width: 9.4rem;
            height: 0.9rem;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            border-radius: 0.5rem;

            >img {
                width: 0.4rem;
                height: 0.38rem;
                margin-left: 0.34rem;
            }

            >input {
                width: 8.67rem;
                height: 0.9rem;
                background-color: #f0f0f0;
                border: 0;
                outline: none;
                box-sizing: border-box;
                padding-left: 0.25rem;
                font-size: 0.42rem;
                color: #999999;
                border-radius: 0.5rem;
            }
        }

        >img:nth-of-type(2) {
            width: 0.6rem;
            height: 0.88rem;
        }
    }
}

main {
    width: $w;
    height: 100%;
    flex: 1;
    overflow: hidden;
    background-color: #f5f7f9;

    >.content {
        position: relative;
        width: $w;
        min-height: 101%;
        >.refresh{
            position: absolute;
            top: -0.8rem;
            width: $w;
            height: 0.8rem;
            line-height: 0.8rem;
            font-size: 0.3rem;
            font-weight: 600;
            text-align: center;
            background-color: lightcyan;
        }
        >.more{
            position: absolute;
            bottom: -0.8rem;
            width: $w;
            height: 0.8rem;
            line-height: 0.8rem;
            font-size: 0.3rem;
            font-weight: 600;
            text-align: center;
            background-color: lightcyan;
        }
        >.banner {
            width: $w;
            height: 3.98rem;
            text-align: center;

            img {
                width: 11.75rem;
                height: 3.98rem;
            }
        }

        >.introduce {
            width: $w;
            height: 1.1rem;

            >ul {
                width: $w;
                height: 1.1rem;
                display: flex;
                align-items: center;
                justify-content: center;

                >li {
                    padding: 0 0.6rem;
                    height: 0.45rem;
                    line-height: 0.45rem;
                    border-right: 0.03rem solid #e6e6e6;

                    >img {
                        width: 0.43rem;
                        height: 0.43rem;
                        margin-right: 0.16rem;
                        vertical-align: middle;
                    }

                    >span {
                        font-size: 0.28rem;
                    }
                }
            }
        }

        >.images {
            width: 11.7rem;
            height: 3.1rem;

            margin: 0.35rem auto 0.15rem;

            >img {
                width: 100%;
                height: 100%;
            }
        }

        >.activity {
            width: $w;
            height: 8.45rem;

            >.box {
                width: 11.75rem;
                height: 8.45rem;
                margin: auto;
                border-radius: 0.2rem;
                background-color: #fff;

                >.a-top {
                    width: 11.75rem;
                    height: 4.3rem;
                    border-bottom: 0.03rem solid #f5f5f5;

                    >.time {
                        width: 11.75rem;
                        height: 1.35rem;
                        border-radius: 0.2rem;
                        display: flex;
                        align-items: center;
                        box-sizing: border-box;
                        padding-left: 0.42rem;

                        >h1 {
                            font-size: 0.42rem;
                        }

                        >.count {
                            min-width: 2.07rem;
                            height: 0.54rem;
                            margin-left: 0.22rem;
                            margin-right: 0.3rem;

                            >span {
                                display: inline-block;
                                width: 0.54rem;
                                height: 0.54rem;
                                line-height: 0.54rem;
                                text-align: center;
                                font-size: 0.26rem;
                                color: #fff;
                                border-radius: 0.1rem;
                                background-color: #333333;
                            }

                            >i {
                                font-size: 0.4rem;
                            }
                        }

                        >p {
                            font-size: 0.3rem;
                            color: #999999;
                        }
                    }

                    >.cosmetics {
                        width: 11.75rem;
                        height: 2.95rem;

                        >ul {
                            width: 11.75rem;
                            height: 2.95rem;
                            display: flex;
                            align-items: center;
                            justify-content: space-around;

                            >li {
                                width: 1.75rem;
                                text-align: center;

                                >p {
                                    font-size: 0.3rem;

                                    >span {
                                        color: #000;
                                    }

                                    >del {
                                        color: #999999;
                                    }
                                }
                            }

                            >li:nth-of-type(1) img {
                                width: 0.88rem;
                                height: 1.23rem;
                                margin-bottom: 0.64rem;
                            }

                            >li:nth-of-type(2) img {
                                width: 1.65rem;
                                height: 1.32rem;
                                margin-bottom: 0.56rem;
                            }

                            >li:nth-of-type(3) img {
                                width: 0.44rem;
                                height: 1.63rem;
                                margin-bottom: 0.25rem;
                            }

                            >li:nth-of-type(4) img {
                                width: 1.12rem;
                                height: 1.22rem;
                                margin-bottom: 0.66rem;
                            }
                        }
                    }
                }

                >.a-bottom {
                    width: 11.75rem;
                    height: 4.12rem;
                    display: flex;

                    >.b-left {
                        border-right: 0.02rem solid #f5f5f5;
                        flex: 1;
                        padding-left: 0.42rem;
                        box-sizing: border-box;

                        >h1 {
                            font-size: 0.44rem;
                            margin-top: 0.44rem;
                            margin-bottom: 0.28rem;
                        }

                        >p {
                            font-size: 0.28rem;
                            margin-bottom: 0.4rem;
                            color: #999999;
                        }

                        >img:nth-of-type(1) {
                            width: 1.4rem;
                            height: 1.5rem;
                            margin-left: 0.5rem;
                            margin-right: 1.62rem;
                        }

                        >img:nth-of-type(2) {
                            width: 1.02rem;
                            height: 1.5 rem;
                        }
                    }

                    >.b-right {
                        flex: 1;
                        padding-left: 0.42rem;
                        box-sizing: border-box;

                        >h1 {
                            font-size: 0.44rem;
                            margin-top: 0.44rem;
                            margin-bottom: 0.28rem;
                        }

                        >p {
                            margin-bottom: 0.8rem;

                            >img {
                                width: 0.44rem;
                                height: 0.44rem;
                                vertical-align: bottom;
                            }

                            >span {
                                display: inline-block;
                                height: 0.44rem;
                                line-height: 0.44rem;
                                font-size: 0.3rem;
                                margin-left: 0.15rem;
                                color: #999999;
                            }
                        }

                        >img:nth-of-type(1) {
                            width: 0.92rem;
                            height: 1rem;
                            margin-left: 0.62rem;
                            margin-right: 1.88rem;
                        }

                        >img:nth-of-type(2) {
                            width: 0.96rem;
                            height: 1rem;
                        }
                    }
                }
            }
        }

        >.nav {
            width: $w;
            height: 1.52rem;

            >ul {
                width: $w;
                height: 1.52rem;
                display: flex;
                align-items: center;
                justify-content: space-around;

                >li {
                    color: #999999;

                    >span {
                        font-size: 0.4rem;
                    }

                    >p {
                        width: 0.65rem;
                        height: 0.06rem;
                        margin: auto;
                        margin-top: 0.15rem;
                        background-color: transparent;
                        border-radius: 0.5rem;
                    }
                }

                >li.nav-active {
                    color: #000;
                }

                >li.nav-active p {
                    background-color: red;
                }
            }
        }

        >.list {
            width: $w;

            ul {
                width: $w;
                display: flex;
                flex-wrap: wrap;

                >li {
                    width: 5.98rem;
                    height: 9.2rem;
                    background-color: #fff;
                    border-radius: 0.2rem;
                    margin-left: 0.15rem;
                    margin-bottom: 0.15rem;

                    >img {
                        width: 5.98rem;
                        height: 5.99rem;
                    }

                    >h2 {
                        font-size: 0.38rem;
                        margin: 0.1rem 0rem 0.32rem;
                        margin-left: 0.32rem;
                    }

                    >p {
                        font-size: 0.38rem;
                        color: #666666;
                        margin-bottom: 0.45rem;
                        margin-left: 0.32rem;
                    }

                    >span:nth-of-type(1) {
                        color: red;
                        font-size: 0.34rem;
                        vertical-align: bottom;
                        margin-left: 0.4rem;
                    }

                    >span:nth-of-type(2) {
                        display: inline-block;
                        text-align: center;
                        width: 1.03rem;
                        height: 0.39rem;
                        line-height: 0.39rem;
                        background-color: red;
                        border-radius: 0.05rem;
                        font-size: 0.24rem;
                        margin-left: 0.3rem;
                    }
                }
            }
        }
    }
}

footer {
    width: $w;
    height: 2.34rem;
    >.f-nav{
        width: $w;
        height: 1.6rem;
        >ul{
            width: $w;
            height: 1.6rem;
            align-items: center;
            display: flex;
            justify-content: space-around;
            >li{
                position: relative;
                font-size: 0.5rem;
                color: #999999;
                >img{
                    width: 1.38rem;
                    height: 1.02rem;
                }
                >span{
                    position: absolute;
                    width: 0.27rem;
                    height: 0.27rem;
                    border-radius: 50%;
                    background-color: red;
                }
            }
            >li.f-nav-active{
                color: #000;
            }
        }
    }
    >.line{
        width: $w;
        height: 0.74rem;
        line-height: 0.74rem;
        >p{
            width: 4.44rem;
            height: 0.15rem;
            margin: auto;
            background-color: #000;
            border-radius: 0.5rem;
        }
    }

}

.wrap{
    position: fixed;
    width: $w;
    height: 100%;
    display: none;
    background:rgba($color: #000000, $alpha: 0.5) ;
    >.subnav{
        position: absolute;
        left: 0;
        top: 0;
        width: 7.5rem;
        height: 100%;
        background-color: #fff;
        >.red{
            width: 7.5rem;
            height: 1rem;
            >img{
                width: 100%;
                height: 100%;
            }
        }
        .title{
            width: 7.5rem;
            height: 3.1rem;
            line-height: 3.1rem;
            padding-left: 0.93rem;
            box-sizing: border-box;
            >h1{
                font-size: 0.66rem;
            }
        }
        .sublist{
            width: 7.5rem;
            height: 100%;
            padding: 0 0.9rem;
            box-sizing: border-box;
            >ul{
                >li{
                    >img{
                        width: 0.5rem;
                        height: 0.5rem;
                        vertical-align: bottom;
                        margin-right: 0.43rem;
                    }
                    >span{
                        font-size: 0.38rem;
                    }
                }
            }
            >ul:nth-of-type(1){
                >li:nth-of-type(1){
                    padding-bottom: 0.8rem;
                }
                >li:nth-of-type(2){
                    padding-bottom: 0.71rem;
                    border-bottom: 0.01rem solid #999999;
                }
            }
            >ul:nth-of-type(2){
                >li{
                    padding-bottom: 0.8rem;
                }
                >li:nth-of-type(1){
                    padding-top: 0.71rem;
                }
                >li:nth-of-type(5){
                    padding-bottom: 0.71rem;
                    border-bottom: 0.01rem solid #999999;
                }
            }
            >ul:nth-of-type(3){
                >li{
                    padding-bottom: 0.8rem;
                }
                >li:nth-of-type(1){
                    padding-top: 0.71rem;
                }
            }
        }
    }
}